package com.chuangjiangx.member.manager.client.web.stored.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author cj-ch
 * @date 2018/4/4 下午3:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "会员卡支付订单请求参数")
public class MbrPayOrderRequest {

    /**
     * 授权付款码,会员付款码固定22长度
     * 卡券优惠后如果订单是0元,可不用传值
     */
    @ApiModelProperty(value = "授权付款码")
    @Size(max = 22,message = "授权付款码最大长度为22位")
    private String authCode;

    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    @NotBlank
    @Size(min = 18,max = 64,message = "订单编号长度为18-64位")
    private String orderNumber;

    /**
     * 支付终端
     */
    @ApiModelProperty(value = "支付终端")
    @NotNull(message = "退款终端不能为null")
    private Integer payTerminal;
}
